package jdbc;
import dao.User;
import dao.UserDAO;
import impl.UserImpl;
import java.util.List;
public class ImplTest {
    public static void main(String[] args) {
        UserDAO userDAO = new UserImpl();
//        userDAO.register(new User(1,"d","123456","管理员",18));
//        userDAO.login("admin","123456");
//        userDAO.upDate(new User(1,"admin","123456","魏世鑫",18));
//        userDAO.delete(2);
//        System.out.println(userDAO.queryById(3).toString());
//        System.out.println(userDAO.queryByNameAndPassword("admin","123456").toString());
        for (User user : userDAO.queryAll()){
            System.out.println(user.toString());
        }
    }
}
